home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
util
/
cli
/
WBLaunch.lha
/
Source
/
COMPILING
next >
Wrap
Text File
|
1999-01-12
|
2KB
|
37 lines
Compiling WBLaunch
==================
If you want to recompile WBLaunch, you will need the following:
a) A C compiler, capable of processing ANSI C. The makefile was
written for VBCC; the source will compile with VBCC or DICE, and
will most likely need modification to work with other C compilers.
b) The official Amiga includes, for OS 3.0 (release 39.x).
c) The wbstart.library development files. Should be available from
Aminet. You will need to have a working wbstart link library for
your C compiler. This may well come with the development files,
or can be built from the supplied FD file. I forget which :-)
d) A copy of GNU make. Feel free to write your own makefile if you
want to use a different make utility (e.g. DMake).
Once you've got that lot, cd into the source directory and type make.
Watch it compile (or not).
The supplied makefile sets the pure bit on the compiled binary.
WBLaunch is written in such a way that it is pure (the only globals
are library bases, used for referencing only; all library opens,
closes etc are done on local copies). Nevertheless, a really grotty C
compiler might not produce pure code. If this happens to you, either
unset the pure bit, or change to VBCC.
Don't link with your C compiler's startup code. The supplied source
file "startup30shell.c" is simple startup code for a CLI based program
running under OS 3.x. Your C compiler's standard startup code is most
likely "catchall" code, which initializes a standard environment, but
which is considerably bigger than WBLaunch needs. Also, it may not be
pure. The supplied VBCC makefile, of course, ensures that VBCC's
startup code is not used.